package apiday02;

import java.util.Arrays;

public class SplitDemoTest {
    public static void main(String[] args) {
        String path = "http://localhost:8088/myweb/reg?name=zhangsan&pwd=123456&nick=san&age=16";
        String[] split = path.split("\\?");
        System.out.println(Arrays.toString(split));
        String[] split1 = split[1].split("&");


         for (int i=0;i<split1.length;i++){
            String[] split2 = split1[i].split("=");
            System.out.println("参数名"+split2[0]+",参数值"+split2[1]);
       //     System.out.println(Arrays.toString(split2));
        }

         String s1="789456";
        int i = Integer.parseInt(s1);
        double v = Double.parseDouble(s1);
        byte b = Byte.parseByte(s1);


    }
}
